package work.huangxin.share.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import work.huangxin.share.domain.sechand.SechandType;
import work.huangxin.share.mapper.SechandTypeMapper;
import work.huangxin.share.service.SechandTypeService;
import work.huangxin.share.util.status.BaseResponse;

import java.util.List;

/**
 * @author 季台星
 * @Date 2023 04 01 16 07
 */
@Service
public class SechandTypeServiceImpl implements SechandTypeService {
    @Autowired
    private SechandTypeMapper sechandTypeMapper;

    @Override
    public List<SechandType> getList() {
        return sechandTypeMapper.selectAllType();
    }

    @Override
    public int deleteType(Integer typeId) {
        return sechandTypeMapper.deleteTypeById(typeId);
    }
}
